var algorithm = require("../src/hoeffding")
  , util = require("util");

function createDataSet() {
  return [[1, 1, 'yes'],
          [1, 1, 'yes'],
          [1, 0, 'no'],
          [0, 1, 'no'],
          [0, 1, 'no'],
          [1, 0, 'yes']];
}

// var tree = algorithm.trainDecisionTree(createDataSet());

var learner = new algorithm.HoeffdingTreeLearner();
createDataSet().forEach(function (featVec) {
  console.log(learner(featVec));
});

console.log(util.inspect(learner.getTree(), true, Number.MAX_VALUE));